<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String basePath = request.getContextPath();
%>

<form id="pagerForm" method="post" action="<%=basePath%>/role/manager.action">
	<input type="hidden" name="page.curPage" value="<s:property value="#PAGE_LIST.curPage"/>" />
	<input type="hidden" name="page.pageSize" value="<s:property value="#PAGE_LIST.pageSize"/>" />
</form>

<!-- 查询条件表单 -->
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<%=basePath%>/role/manager.action" method="post">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>角色名称：</label>
					<input type="text" name="roles.rolesName" value="<s:property value="#rolesName"/>"/>
				</li>
				<li>
					<label>角色代码：</label>
					<input type="text" name="roles.rolesCode" value="<s:property value="#rolesCode"/>"/>
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="reset">清除查询条件</button></div></div></li>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<!-- 查询条件表单 -->

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>/role/toRoleAdd.action" target="dialog" width="800" height="480"><span>角色添加</span></a></li>
			<li><a class="delete" href="<%=basePath%>/role/roleDel.action?roles.rolesId={roleId}" target="ajaxTodo" title="确定要删除该用户吗？" warn="请选择一个角色"><span>删除</span></a></li>
			<li><a class="edit" href="<%=basePath%>/role/toRoleModify.action?roles.rolesId={roleId}" width="800" height="480" target="dialog" warn="请选择一个角色"><span>角色信息修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
		</ul>
	</div>

	<div id="w_list_print" layoutH="116">
	
	<table class="list" width="98%" targetType="navTab">
		<thead>
			<tr>
				<th width="80">角色名称</th>
				<th width="100">角色代码</th>
				<th width="100">角色状态</th>
				<th width="100">角色创建时间</th>
				<th width="100">角色创建用户</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="#request.ROLES_LIST_REQ_KEY" id="role">
				<tr target="roleId" rel="<s:property value="#role.rolesId"/>">
					<td><s:property value="#role.rolesName"/></td>
					<td><s:property value="#role.rolesCode"/></td>
					<td><s:text name="role.status.%{#role.rolesStatus}"/></td>
					<td><s:date name="#role.rolesCreateTimeFormat" format="yyyy-MM-dd"/></td>
					<td><s:property value="#role.rolesCreateUserName"/></td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	</div>
	
	<%@include file="/WEB-INF/page/common/pagination.jsp"%>
	
</div>